package com.witmore.skyline.web.controller;

import com.witmore.skyline.web.controller.vo.param.DeviceAttendanceParam;
import com.witmore.skyline.web.controller.vo.result.DeviceAttendanceVO;
import com.witmore.skyline.web.controller.vo.result.ResponseResult;
import com.witmore.skyline.web.service.DashboardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 大屏控制器 V2.1
 * Author: 豆子高
 * Date: 2025/10/21
 */
@RestController
@RequestMapping("api/dashboard/")
public class DashboardController {

    @Autowired
    private DashboardService dashboardService;

    /**
     * 实施设备出勤情况接口&顶部统计 V2.1
     */
    @GetMapping(value = "deviceAttendance", name = "实施设备出勤情况接口&顶部统计")
    public ResponseResult<DeviceAttendanceVO> deviceAttendance(DeviceAttendanceParam param) {
        return dashboardService.getDeviceAttendance(param);
    }
}
